home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / bjfilt.arj / MON16.H < prev    next >
Text File  |  1994-02-03  |  776b  |  30 lines

  1. /*** Monitor support */
  2.  
  3. #define MONITOR_DEFAULT 0x0000
  4. #define MONITOR_BEGIN   0x0001
  5. #define MONITOR_END     0x0002
  6.  
  7. typedef SHANDLE HMONITOR;
  8. typedef HMONITOR FAR *PHMONITOR;
  9.  
  10. typedef struct _MONIN {
  11.     USHORT cb;
  12.     BYTE abReserved[18];
  13.     BYTE abBuffer[108];
  14. } MONIN;
  15. typedef MONIN FAR *PMONIN;
  16.  
  17. typedef struct _MONOUT {
  18.     USHORT cb;
  19.     UCHAR buffer[18];
  20.     BYTE abBuf[108];
  21. } MONOUT;
  22. typedef MONOUT FAR *PMONOUT;
  23.  
  24. USHORT DosMonOpen(PSZ pszDevName, PHMONITOR phmon);
  25. USHORT DosMonClose(HMONITOR hmon);
  26. USHORT DosMonReg(HMONITOR hmon, PBYTE pbInBuf, PBYTE pbOutBuf,
  27.          USHORT fPosition, USHORT usIndex);
  28. USHORT DosMonRead(PBYTE pbInBuf, USHORT fWait, PBYTE pbDataBuf, PUSHORT pcbData);
  29. USHORT DosMonWrite(PBYTE pbOutBuf, PBYTE pbDataBuf, USHORT cbData);
  30.